import java.io.File;

import javax.swing.filechooser.FileFilter;

public class txtFileFilter extends FileFilter implements java.io.FileFilter{

	@Override
	public boolean accept(File f) {
		if (f.getName().toLowerCase().endsWith(".txt")) return true;
		if(f.isDirectory())return true;
		return false;
	}

	@Override
	public String getDescription() {
		return "txt";
	}

}
